package com.weipai.springboot.enums;

public enum RetCode {

    SUCCESS(200, "成功"),
    BOUND_SUCCESS(200,"绑定成功"),
    BOUND_FAIL(500,"绑定失败"),
    ZHUCE_NO(401, "请先注册账号,再绑定微信"),
    BOUND_NO(401, "未绑定账号,请先去绑定"),
    ADDRESS_ID(401, "请填写收货地址"),
    AMOUNT_PAYABLE(401, "应付金额不能为空"),
    GOODS_EMPTY(401, "商品已售罄"),
    GOODS_INTERGRAL(401, "积分商品以兑空！"),
    GOODS_INTERGRALFAIL(401, "积分商品兑换失败"),
    REAL_PAY(401, "实付金额不能为空"),
    SHOP_ID(401, "店铺不能为空"),
    INVOICE_SPECIFICAL(401, "请确认发票形式"),
    INVOICE_ISINVOICE(401, "请填写或选择发票信息"),
    STORAGE_ID(401, "仓储不能为空"),

    integral_NO(401, "您的积分不足"),


    VAR_FRONT(401, "请上传身份证人头像面"),
    VAR_BACK(401, "请上传身份证国徽面"),

    VAR_BANK(401, "此银行卡已经绑定,不能重复绑定!"),

    VAR_PRICE(401, "商品价格为0,不能进行支付!"),
    VAR_HAVE(401, "此商品已是会场商品，请勿重复添加"),

    REQUEST_ERROR(500, "请求失败"),

    REQUEST_ERROR_EMPLOYEE(500, "请求失败,员工不可以申请店铺"),
    REQUEST_ERROR_ARTISAN(500, "请求失败,员工不可以申请技工"),
    REQUEST_ERROR_CUSTOMER(500, "请求失败,大客户不可以申请技工"),

    SAVE_ERROR(500, "保存失败"),
    DEL_ERROR(500, "删除失败"),
    NOT_LOGIN(-1, "尚未登录"),
    LOGIN_FAIL(-2, "登录失败"),
    LOGIN_Token(-1, "请重新登录"),
    PWD_ERROR(-3, "密码错误"),
    NO_GiftCertificate(401, "优惠券活动时间还未结束,不能删除!"),

    NO_DATA(401, "暂无数据"),
    NO_BANKINFO(401, "无银行卡信息，请先绑定银行卡！"),
    HAVE_DATA(401, "此商品已存在，请勿重复添加"),
    ASSOCIATED_DATA(402, "请删除关联数据"),

    REPEAT_DATA(403, "不能重复添加"),
    GIFT_DATA(404, "您已领取过此优惠券!"),
    GIFT_NUM(404, "优惠券已领完!"),


    IMG_FORMAT(501, "上传图片格式暂不支持"),
    IMG_SIZE(502, "上传的文件不能超过150Kb"),
    IMG_ERROR(500, "服务器错误,上传图片失败"),
    IMG_NULL_ERROR(503, "上传的文件不能为空"),

    SMS_CODE_SEND_ERROR(503, "验证码发送失败"),
    SMS_CODE_VERIFY_FAIL(504, "验证码验证失败"),
    SMS_CODE_EXPIRE(505, "验证码过期"),
    SMS_CODE_PUT(505, "请输入验证码"),
    COLD(401, "验证码不一致"),
    COLD_ALL(401, "请输入完整的个人信息"),
    COLD_phone(401, "此手机号已注册，请直接登录"),
    PASSWORD_NOT_SAME(500,"密码不一致，请重新输入"),

    INVICODE_VALID(401, "邀请码错误"),
    SHOP(401, "暂无店铺"),
    MONEY(401, "请输入正确的金额"),
    MONEY_LESS(401, "余额不足"),
    ALIPAY_NO(401, "未绑定支付宝,请先去绑定"),
    CASHRECORD_VER(401, "已有待处理的申请,请稍后再试"),

    NONSUPPORT(403, "订单状态不支持"),
    DEMAND_SERVICE_STAFF_ERROR(506,"客服信息错误"),
    DEMAND_ARTISAN_INFO_ERROR(507,"技工信息错误"),
    
    CUSTOMER_CATEGORY_ERROR(500, "会员类别错误"),
    
    STORAGE_GOODSNUMBERNULL(401, "仓库无货"),
    STORAGE_GOODSNOTENOUGH(401, "仓库数量不足"),

    ARTISAN_MOBILE(401, "手机号已注册，请勿重复提交"),
    ARTISAN_VER(401, "此用户已注册过技工，请勿重复提交"),
    ARTISAN_TOCUSTOMER(401, "此用户有未审核申请技工记录"),

    NO_GOODSNUMBER(401, "未获取到商品数量"),
    NO_GOODSPRICE(401, "未获取到商品价格"),
    
    REPUTATION(401, "请还清本期账单"),
    REPUTATION_ERROR(401, "调额错误"),
    REPUTATION_FLOOR(401, "超出授信额度"),
    RETURN_REPUTATION(401,"请归还信用额度"),
    CUSTOMER_CATEGORY_ERROR_TWO(401,"请申请成为大客户"),
    

    FORBIDDEN(401,"账号冻结，请联系客服"), 
    PAY_ERROR(401, "您的余额不足，请选择其它支付方式"),
    ORDER_NULL(401, "为获取到订单信息"),
    NOT_DISPOSE_SALERETURN(401, "有退货订单，此订单不能发货");
    
    
    

    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
